<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="__STATIC__/jquery-1.4.4.min.js"></script>
    <script type="text/javascript" src="__STATIC__/jquery.jqprint-0.3.js"></script>
    <title></title>
</head>
<body>
    <div style="margin-bottom: 50px"><button onclick="windprint()">打 印</button></div>
    <div id="print_body" style="width: 1000px">
        <div style="text-align:center;font-size: 28px"><p>拉&nbsp&nbsp萨&nbsp&nbsp海&nbsp&nbsp关&nbsp&nbsp报&nbsp&nbsp销&nbsp&nbsp单</p></div>
        <hr>
        <div style="text-align:center;font-size: 18px;margin-bottom: 40px">
            <div style="width:55%;float:left;">报销单号：CWBX003000006</div>
            <div style="width:25%;float:left">
                <span style="text-decoration:underline;">2018</span> &nbsp年&nbsp <span style="text-decoration:underline;">07</span> &nbsp月&nbsp <span style="text-decoration:underline;">27</span> &nbsp日&nbsp
            </div>
            <div style="width:20%;float:left">
                <span>附单据 </span><span style="text-decoration:underline;">&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span> 张
            </div>
        </div>
        <div>
            <table style="width: 1000px;border-collapse: collapse;margin: 0 auto;text-align: center;">
                <tr style="border: 1px solid black;">
                    <td colspan="4" style="height: 80px;font-size: 22px;width:25%;border: 1px solid black;padding-right: 30px">用&nbsp&nbsp&nbsp&nbsp途</td>
                    <td colspan="8" style="font-size:16px;border: 1px solid black;text-align:left">买飞机777，买飞机777。买飞机777吗，买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777，买大飞机777、买飞机777，买飞机777。买飞机777吗，买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777买飞机777，买大飞机777</td>
                </tr>
                <tr style="border: 1px solid black;">
                    <td colspan="2" style="height: 30px;font-size: 18px;width:12%;border: 1px solid black;padding-right: 10px">报销金额</td>
                    <td colspan="2" style="height: 30px;font-size: 14px;width:13%;border: 1px solid black;padding-right: 10px">人民币（大写）</td>
                    <td colspan="4" style="font-size:18px;border: 1px solid black;text-align:center;width:30%">壹万三仟元整</td>
                    <td colspan="2" style="height: 30px;font-size: 14px;width:15%;border: 1px solid black;padding-right: 10px">人民币（小写）</td>
                    <td colspan="2" style="font-size:18px;border: 1px solid black;text-align:center;width:30%">13000.00 元</td>
                </tr>
                <tr style="border: 1px solid black;">
                    <td colspan="2" style="height: 30px;font-size: 18px;width:12%;border: 1px solid black;padding-right: 10px">核销金额</td>
                    <td colspan="2" style="height: 30px;font-size: 14px;width:13%;border: 1px solid black;padding-right: 10px">人民币（大写）</td>
                    <td colspan="4" style="font-size:18px;border: 1px solid black;text-align:center;width:30%">壹万三仟元整</td>
                    <td colspan="2" style="height: 30px;font-size: 14px;width:15%;border: 1px solid black;padding-right: 10px">人民币（小写）</td>
                    <td colspan="2" style="font-size:18px;border: 1px solid black;text-align:center;width:30%">13000.00 元</td>
                </tr>
                <tr style="border: 0px solid black;">
                    <td colspan="2" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px">关领导</td>
                    <td colspan="2" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px"></td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px">财务主管</td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px"></td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px">财务审核</td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px"></td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px">部门领导</td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px"></td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px">申报人</td>
                    <td colspan="1" style="height: 20px;font-size: 16px;width:10%;border: 1px solid black;padding-right: 10px"></td>
                </tr>
            </table>
        </div>
    </div>
</body>
<script type="application/javascript">
    var HKEY_Root, HKEY_Path, HKEY_Key;
    HKEY_Root = "HKEY_CURRENT_USER";
    HKEY_Path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
    function windprint() {
        pagesetup_null();
        var isIE = /msie/.test(navigator.userAgent.toLowerCase()); //jquery1.9之后采用
        if (isIE) {
            ieprint('print_body');
        }else{
            $("#print_body").jqprint();
        }
    }
    function pagesetup_null(){
        try{
            var RegWsh = new ActiveXObject("WScript.Shell")
            hkey_key="header"
            RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
            hkey_key="footer"
            RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
        }catch(e){}
    }

    function ieprint(mydiv)
    {
        var newstr = document.getElementById(mydiv).innerHTML;
        window.document.body.innerHTML=newstr
        window.print();
    }

</script>
</html>